<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<title> New Document </title>
	<meta name="Generator" content="EditPlus">
	<meta name="Author" content="">
	<meta name="Keywords" content="">
	<meta name="Description" content="">
	<script type="text/javascript" src="jquery.js"></script>
	<script type="text/javascript" src="jquery.form.js"></script>
	<script type="text/javascript">
		// 准备好Options对象
		var options = {
					url:	'script.php',
					success:function(data){$("#ajax").html(data);}
				};
		// wait for the DOM to be loaded
		$(document).ready(function() {
			// bind 'myForm' and provide a simple callback function
			$('#myForm').ajaxForm(options);
		});
	</script>
</head>

<body>
	<form id="myForm" action="script.php" method="post">
	Name: <input type="text" name="name" />
	<br/>
	Comment: <input type="text" name="comment" />
	<br/>
	<input type="submit" value="Submit Comment" />
	</form>
	<span id="ajax"></span>
</body>
</html>
